package cn.wizzer.app.sys.modules.models;

import cn.wizzer.framework.base.model.BaseModel;
import lombok.Data;
import org.nutz.dao.entity.annotation.*;
import org.nutz.dao.interceptor.annotation.PrevInsert;

import java.io.Serializable;

/**
 * 敏感词
 */
@Table("sys_sensitive")
@Data
public class SysSensitive extends BaseModel implements Serializable {

    @Column
    @Name
    @ColDefine(type = ColType.VARCHAR, width = 32)
    @PrevInsert(els = {@EL("uuid()")})
    private String id;
    /**
     * 类别
     */
    @Column
    @ColDefine(type = ColType.VARCHAR, width = 32)
    private String type;

    /**
     * 内容
     */
    @Column
    @ColDefine(type = ColType.VARCHAR, width = 128)
    private String words;
}
